package com.memory.modules.business.service.sell;

import com.memory.modules.business.domain.sell.InvoiceRecord;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

import java.util.Optional;

public interface InvoiceRecordService {
    InvoiceRecord create(InvoiceRecord record);

    InvoiceRecord modify(Long id, InvoiceRecord record);

    Optional<InvoiceRecord> findById(Long id);

    InvoiceRecord remove(Long id);

    Page<InvoiceRecord> findPage(Example<InvoiceRecord> example);
}
